<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js"></script>
</head>
<body>
<h1>updateUser</h1>
<script>
    $(function(){
        $.ajax({
            url:"/json/d4",
            contentType:"application/json",
            type:"post",
            data:JSON.stringify({"name":"张三","age":0,"sex":"男"}),
            success:function(data){
                alert(data);
            }
        })
    })
</script>


</body>
</html>